import java.util.Scanner;

public class Day01T2 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int fTemper = sc.nextInt();
        int celsius = 5 * (fTemper - 32) / 9;
        System.out.println("Celsius = " + celsius);
        sc.close();
    }
}
